import request from '@/router/axios';

// 获取素材反馈列表
export const getCreativeFeedbackList = params => {
  return request({
    url: '/api/beetles-offer/creative-feedback/page',
    method: 'GET',
    params
  })
}

// 获取素材反馈详情
export const getCreativeFeedbackDetailById = feedbackId => {
  return request({
    url: '/api/beetles-offer/creative-feedback/detail',
    method: 'GET',
    params: {
      feedbackId
    }
  })
}

// 保存素材详情
export const saveCreativeFeedbackGenerateReport = data => {
  return request({
    url: '/api/beetles-offer/creative-feedback/generate-report',
    method: 'POST',
    data
  })
}

// 删除报告
export const removeCreativeFeedbackByIds = ids => {
  return request({
    url: '/api/beetles-offer/creative-feedback/remove',
    method: 'POST',
    params: {
      ids
    }
  })
}
